﻿using System.ComponentModel.DataAnnotations;

namespace JNPF.Basics.Models.Extend.Dtos.Email
{
    /// <summary>
    /// 发邮件
    /// </summary>
    public class EmailSendInput
    {
        /// <summary>
        /// 主题
        /// </summary>
        [Required(ErrorMessage = "主题不能为空")]
        public string subject { get; set; }
        /// <summary>
        /// 收件人
        /// </summary>
        [Required(ErrorMessage = "收件人不能为空")]
        public string recipient { get; set; }
        /// <summary>
        /// 正文
        /// </summary>
        [Required(ErrorMessage = "正文不能为空")]
        public string bodyText { get; set; }
        /// <summary>
        /// 附件
        /// </summary>
        [Required(ErrorMessage = "附件不能为空")]
        public string attachment { get; set; }
        /// <summary>
        /// 抄送人	
        /// </summary>
        [Required(ErrorMessage = "抄送人不能为空")]
        public string cc { get; set; }
        /// <summary>
        /// 密送人	
        /// </summary>
        [Required(ErrorMessage = "密送人不能为空")]
        public string bcc { get; set; }
    }
}
